/**
 *  @file: irq.c
 *  @author: nwz
 *  @brief: 
 *  @date: 2024��7��29��
 * 
 */
#include "all_header.h"

extern UART_HandleTypeDef huart1;
extern SPI_HandleTypeDef hspi3;

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
	if (huart == &huart1) {
		void console_uart_recv_complete_callback(UART_HandleTypeDef *huart);
		console_uart_recv_complete_callback(huart);
	}
}

void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart) {
	if (huart == &huart1) {
		void console_uart_recv_halfcomplete_callback(UART_HandleTypeDef *huart);
		console_uart_recv_halfcomplete_callback(huart);
	}
}

void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
	if (huart == &huart1) {
		void console_uart_send_complete_callback(UART_HandleTypeDef *huart);
		console_uart_send_complete_callback(huart);
	}
}


/**
 *
 */
void HAL_UART_ReceiveTimeoutCallback(UART_HandleTypeDef *huart) {
	// receive time out
	if (huart == &huart1) {
		void console_uart_recv_timeout_callback(UART_HandleTypeDef *huart);
		console_uart_recv_timeout_callback(huart);
	}

}

void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi){
	if (hspi == &hspi3){
		void lcd_dma_send_callback(void);
		lcd_dma_send_callback();
	}
}
